home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / alaskan-adversary.swf / scripts / frame_121 / PlaceObject2_1015_328 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-11  |  6.5 KB  |  197 lines

  1. onClipEvent(enterFrame){
  2.    function ┬º\x01\x02┬º()
  3.    {
  4.       return 1401 % 511 * 5;
  5.    }
  6.    var ┬º\x01┬º = -1673 + "\x01\x02"();
  7.    while(true)
  8.    {
  9.       if(eval("\x01") == 222)
  10.       {
  11.          set("\x01",eval("\x01") + 103);
  12.          ┬º┬ºpush(true);
  13.       }
  14.       else if(eval("\x01") == 274)
  15.       {
  16.          set("\x01",eval("\x01") - 34);
  17.       }
  18.       else
  19.       {
  20.          if(eval("\x01") == 240)
  21.          {
  22.             set("\x01",eval("\x01") + 410);
  23.             if(_root.paus3)
  24.             {
  25.                speed = 0;
  26.                maxspeed = 0;
  27.             }
  28.             if(!_root.paus3)
  29.             {
  30.                if(this.hitTest(_root.camera))
  31.                {
  32.                   speed = 0;
  33.                   maxspeed = 10;
  34.                   damage = 0;
  35.                   grav++;
  36.                   _Y = _Y + grav;
  37.                   while(_root.ground.hitTest(_X,_Y,true))
  38.                   {
  39.                      _Y--;
  40.                      grav = 0;
  41.                   }
  42.                   if(_root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 2,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 6,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height,true))
  43.                   {
  44.                      _X = _X - speed;
  45.                   }
  46.                   if(_root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 2,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 6,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height,true))
  47.                   {
  48.                      _X = _X + speed;
  49.                   }
  50.                   if(_root.ground.hitTest(_X,_Y - _height - 15,true))
  51.                   {
  52.                      grav = 1;
  53.                   }
  54.                   moving = 0;
  55.                   above = 0;
  56.                   if(this._x < _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 10 && this._currentframe != 15 && this._currentframe != 20 && this._currentframe != 25 && this._currentframe != 30 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
  57.                   {
  58.                      this._x += movespeed;
  59.                      _xscale = scale;
  60.                      this.gotoAndStop("run");
  61.                      attack = 0;
  62.                      moving = 1;
  63.                   }
  64.                   else if(this._x > _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 10 && this._currentframe != 15 && this._currentframe != 20 && this._currentframe != 30 && this._currentframe != 25 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
  65.                   {
  66.                      this._x -= movespeed;
  67.                      _xscale = - scale;
  68.                      this.gotoAndStop("run");
  69.                      attack = 0;
  70.                      moving = 1;
  71.                   }
  72.                   if(_root.char._currentframe == 45)
  73.                   {
  74.                      this.gotoAndStop("idle");
  75.                      moving = 0;
  76.                   }
  77.                   if(!moving && this._currentframe != 5)
  78.                   {
  79.                      moving = 0;
  80.                   }
  81.                   if(this._currentframe == 35)
  82.                   {
  83.                      this._x += movespeed;
  84.                   }
  85.                   jumpHits = 9;
  86.                   i = 1;
  87.                   while(i <= jumpHits)
  88.                   {
  89.                      jumpHit = _root.ground["jumpHit" + i];
  90.                      if(this.hitTest(jumpHit) && moving == 1)
  91.                      {
  92.                         grav = - jumpHeight;
  93.                         _Y = _Y - 4;
  94.                         moving = 0;
  95.                      }
  96.                      i++;
  97.                   }
  98.                   attack = 0;
  99.                   jumping = 0;
  100.                   if(!jumping && !above && !attack && this._currentframe != 25 && this._currentframe != 20 && this.hitTest(_root.char))
  101.                   {
  102.                      if(this._currentframe != 10 && this._currentframe != 15)
  103.                      {
  104.                         attack1();
  105.                      }
  106.                      if(this._currentframe != 10 && this._currentframe != 15)
  107.                      {
  108.                         attack = 0;
  109.                      }
  110.                   }
  111.                }
  112.             }
  113.             break;
  114.          }
  115.          if(eval("\x01") == 34)
  116.          {
  117.             set("\x01",eval("\x01") + 530);
  118.             break;
  119.          }
  120.          if(eval("\x01") == 650)
  121.          {
  122.             set("\x01",eval("\x01") - 650);
  123.             break;
  124.          }
  125.          if(eval("\x01") == 932)
  126.          {
  127.             set("\x01",eval("\x01") - 658);
  128.             if(function ┬º\x01\x02┬º()
  129.             {
  130.                return 1401 % 511 * 5;
  131.             })
  132.             {
  133.                set("\x01",eval("\x01") - 34);
  134.             }
  135.          }
  136.          else if(eval("\x01") == 313)
  137.          {
  138.             set("\x01",eval("\x01") + 619);
  139.             ┬º┬ºpush(!function ┬º\x01\x02┬º()
  140.             {
  141.                return 1401 % 511 * 5;
  142.             });
  143.          }
  144.          else if(eval("\x01") == 165)
  145.          {
  146.             set("\x01",eval("\x01") + 340);
  147.             ┬º┬ºpush("\x0f");
  148.             ┬º┬ºpush(1);
  149.          }
  150.          else if(eval("\x01") == 345)
  151.          {
  152.             set("\x01",eval("\x01") - 32);
  153.             ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  154.             {
  155.                return 1401 % 511 * 5;
  156.             }));
  157.          }
  158.          else if(eval("\x01") == 325)
  159.          {
  160.             set("\x01",eval("\x01") - 291);
  161.             if(function ┬º\x01\x02┬º()
  162.             {
  163.                return 1401 % 511 * 5;
  164.             })
  165.             {
  166.                set("\x01",eval("\x01") + 530);
  167.             }
  168.          }
  169.          else if(eval("\x01") == 465)
  170.          {
  171.             set("\x01",eval("\x01") - 300);
  172.          }
  173.          else if(eval("\x01") == 909)
  174.          {
  175.             set("\x01",eval("\x01") - 564);
  176.             ┬º┬ºpush("\x0f");
  177.          }
  178.          else if(eval("\x01") == 564)
  179.          {
  180.             set("\x01",eval("\x01") - 399);
  181.          }
  182.          else
  183.          {
  184.             if(eval("\x01") != 505)
  185.             {
  186.                break;
  187.             }
  188.             set("\x01",eval("\x01") + 404);
  189.             var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  190.             {
  191.                return 1401 % 511 * 5;
  192.             };
  193.          }
  194.       }
  195.    }
  196. }
  197.